package dormouse.vfs.ui.actions;



import org.apache.commons.vfs2.FileObject;
import org.jdesktop.application.Application;

import dormouse.Dormouse;
import dormouse.DormouseView;

public class BackAction extends AbstractShowLocationTask {
	
	public BackAction(Application app){
            super(app,"");
        }

    @Override
    protected Object doInBackground() throws Exception {
        Dormouse exp = (Dormouse) this.getApplication();
        DormouseView view = (DormouseView)exp.getMainView();
        FileObject currDir = view.getLocation();
        FileObject parent = currDir.getParent();
        view.setLocation(parent);
        return null;
    }






}
